import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import WujieVue from "wujie-vue3";
const { bus } = WujieVue;

const app = createApp(App);
app.use(WujieVue);
app.mount("#app");

// 监听子应用发送的消息
bus.$on("changeTitle", function (title: string) {
  console.log("主应用发送的消息", title);
  document.title = title;
});
